====This Folder includes:======

1. ilp.m       	The matlab code that doing ILP
2. Data Folder	This folder contains all the experiment instance. Detailed information is provided in Appendix III
3. Config		Configuration file for ilp

====How to Run the Code========
1. Change the folder of matlab to this folder.
2. Use the following command to call the ILP program

ilp($(Experiment_Directory), $(COI_File_Name))  e.g. ilp('./Data/VaryP/P_100/1', 'COI1')

[Note]: Do not add '/' at the end of $(Experiment_Directory)!
[Note]: The information about the COI files is provided in Appendix II
[Note]: Since the samples are randomly selected, the COI Files for each experiment instance are provided case by case in each experiment instance directory.

3. Check result in the "Result.txt" file

[Note]: Since we sampled parts of papers and reviewers from the original data set in each experiment instance, we also provide the mapping from the "paper(reviewer) ID in this experiment instance" to "paper(reviewer) ID in the original data set". The mapping information of paper is stored in "Map_P" and the mapping information of reviewer is stored in "Map_R" respectively.

Appendix
I. The format of Config.txt
=============================

(1)<# of paper>
(2)<# of reviewer>
(3)<# of paper demand constraint>
(4)<# of reviewer workload>

[Note]: Make sure that (1)*(3) <= (2)*(4) or there will be no answer since the total workforce is less than the demand !!!

II. About files in COI Folder
===============================
First of all, the COI information is represented by matrix in the following file. Each row stands for one paper and each column stands for one reviewer. The row number and column number is the ID of the paper and reviewer (IN THIS EXPERIMENT INSTANCE), respectively.And the (i,j)th entry of the matrix indicates whether there exists a conflict in this kind of COI. (1 for yes and 0 for no)


The type(s) of COI information each file contains is listed as follows. 
-------------------
COI0 : No COI
COI1 : COI Type 1
COI2 : COI Type 2
COI3 : COI Type 3
COI4 : COI Type 4
COI123 : COI Type 1, 2, and 3
COI1234 : COI Type 1, 2, 3, and 4

[Note]: All the files includes the case of paper-reviewer pair (p, r) where r is the author of p

III. About the Data Folder
==============================
The Data folder contains all the experiment instances. Specifically, for each experiment instance in the folder, following folders and files will be included:

%Files
-------
*PT : The paper-topic matrix
*RT : The reviewer-topic matrix
*Map_P : the mapping from the "paper ID in this experiment instance" to "paper ID in the whole experiment"
*Map_R : the mapping from the "reviewer ID in this experiment instance" to "reviewer ID in the whole experiment"

%Folder
-------
COI : The COI Folder contains the corresponding COI matrix for the paper and reviewer in this experiment instance.
